package com.example.ssmDemo.core.dto;

import com.alibaba.fastjson2.JSON;
import lombok.Data;

@Data
public class MyResult {
    private Integer code=0;//默认是操作成功
    private String msg="成功";
    private Object data;//结果对象

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
//    public MyResult toMyResultFROMJsonStrng(String jsonstr){
//
//    }
}
